﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Manager.Camada.Negocio;
using System.Data;

namespace Manager.MasterPage
{
    public partial class MasterPage : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (this.IsPostBack == false)
            {
                UsuarioVO usuario = (UsuarioVO)Session["usuario"];

                if (usuario != null)
                {
                   // lbUsuario.Text = usuario.nome;
                }
            }
        }
        
        protected void lkLogof_Click(object sender, EventArgs e)
        {
            Response.Redirect("PaginaLoginGerenciador.aspx");
        }

        protected void lkSair_Click(object sender, EventArgs e)
        {
            Session["listaProjetos"] = null;
            Response.Redirect("PaginaLoginGerenciador.aspx");
        }
    }
}